import request from '../utils/request'

/**
 * 用户登录
 * @param {Object} data {username, password}
 * @returns promise
 */
export const login = data => request({
    method:'post',
    url:'login',
    data
})